/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * callback.h : Most callbacks are put here.
 *
 * Copyright (C) 2008, 2009 Lingtao Pan
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, 
 * Boston, MA 02111-1307, USA.
 */


#ifndef GFTP2_CALLBACK_H
#define GFTP2_CALLBACK_H

/* Note, some specific module related callbacks are put to that module. */


void openurl_edit_finish_cb (GtkEntry *entry, gpointer data);
void download_cb (GtkMenuItem *item, gpointer data);
void upload_cb   (GtkMenuItem *item, gpointer data);
void stop_cb     (GtkWidget *item, gpointer data);

void show_preference_dialog_cb (GtkMenuItem *item, gpointer data);
void show_help_cb (GtkMenuItem *item, gpointer data);
void show_about_cb (GtkMenuItem *item, gpointer data);

gboolean right_view_button_click_cb (GtkWidget *widget, GdkEventButton *event, 
                                     gpointer data);
gboolean left_view_button_click_cb  (GtkWidget *widget, GdkEventButton *event, 
                                     gpointer data);
void refresh_left_cb (GtkMenuItem *item, gpointer data);
void refresh_right_cb (GtkMenuItem *item, gpointer data);
void copy_filename_left_cb (GtkMenuItem *item, gpointer data);
void copy_filename_right_cb (GtkMenuItem *item, gpointer data);
void delete_file_left_cb (GtkMenuItem *item, gpointer data);
void delete_file_right_cb (GtkMenuItem *item, gpointer data);

gboolean viewer_enter_leave_cb (GtkWidget *widget, GdkEventCrossing *event,
                              Viewer *viewer);


gboolean viewer_popup_menu_cb (GtkWidget *widget, Viewer *viewer);
void viewer_row_activated_cb (GtkTreeView *tree_view, GtkTreePath *path,
                              GtkTreeViewColumn *column, gpointer user_data);
void viewer_directory_edited_cb (GtkEntry *entry, Viewer *viewer);
void viewer_combo_changed_cb (GtkComboBox *combo, Viewer *viewer);


/* void cb_viewer_combo_popup (GtkComboBox *combo, Viewer *viewer); */
/* void cb_viewer_combo_popdown (GtkComboBox *combo, Viewer *viewer); */

void bookmark_activated_cb (GtkMenuItem *, gftp2_bookmark *);


#endif
